#include <QCoreApplication>
#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    int A;
    int B;
    int C;
    int ia=0;
    int Va=0;
    int ib=0;
    int Vb=0;
    int V=0;
    int t=0;
    cout<<"Vvedite A: ";
    cin>>A;
    cout<<"Vvedite B: ";
    cin>>B;
    cout<<"Vvedite C: ";
    cin>>C;
    while(Va<A)
    {
       Va+=C;
       ia++;
    }
    while(Vb<B)
    {
       Vb+=C;
       ib++;
    }
    while(t<ia)
    {
       V+=ib;
       t++;
    }
    cout<<"Kolichestvo kvadratov razmrom c: "<<V;
    return a.exec();
}
